<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head>
<?php
if (isset($_REQUEST['submit']) && $_FILES['hinh']['size']>0) {
	$fileName=$_FILES['hinh']['name'];
	$tmpName=$_FILES['hinh']['tmp_name'];
	$fileSize=$_FILES['hinh']['size'];
	$fileType=$_FILES['hinh']['type'];
	$fp=fopen($tmpName,'r');
	$content=fread($fp,filesize($tmpName));
	$content=addslashes($content);
	fclose($fp);
	if (!get_magic_quotes_gpc()) {
		$fileName=addslashes($fileName);
	}
	move_uploaded_file($_FILES['hinh']['tmp_name'],"../img/banner/".$_REQUEST['numImg'].".jpg");
}
?>
<head>
	<meta http-equiv='refresh' content='0;URL= index.php?tab=4'>
</head>